package com.netease.financial.module.web;

import com.netease.financial.base.web.WebStoragePreferencesHelper;
import com.netease.financial.domain.Factory;

import javax.inject.Inject;

import static com.netease.financial.base.web.WebStoragePreferencesHelper.KEY_LOCAL_STORAGE_ACCESS_TOKEN;

/**
 * Created by wyf on 11/11/15.
 */
public class AccessToken implements Factory<String> {

    @Inject
    public AccessToken() {
    }

    @Override
    public String get() {
        return WebStoragePreferencesHelper.getLocalStorageItem(KEY_LOCAL_STORAGE_ACCESS_TOKEN);
    }

}
